@/*
    checkbox标签中各个参数的说明:
    name : checkbox的名称
    id : checkbox的id
    code : 字典的code
    map : 选项map 示例：{'1':'目录','2':'菜单','3':'权限'};
    underline : 是否带分割线
@*/
<div class="form-group">
	@if(!isEmpty(name)){
    <label class="lab">${name}</label>
	@}
    <div class="ele ${isEmpty(name)?'ele-fit':''}">
        	@var _map = {};
			@if(!isEmpty(map)){
				@_map = map;
			@}
			@if(!isEmpty(code)){
				@_map = getDictsByCode(code);
			@}
			@for(ele in _map){
				@if(strutil.contain((value!''+''),(ele.key+''))){
					<input id="${id}_${eleLP.index}" type="checkbox" name="${id}" label="${ele.value}" value="${ele.key}" class='hisui-checkbox' checked="checked"></input>
				@}else{
					<input id="${id}_${eleLP.index}" type="checkbox" name="${id}" label="${ele.value}" value="${ele.key}" class='hisui-checkbox' ></input>
				@}
			@}
			<input type="hidden" name="${id}"></input>
			@if(isNotEmpty(tips)){
		        <span class="help-block m-b-none">${tips!}</span>
			@}
    </div>
</div>
@if(isNotEmpty(underline) && underline == 'true'){
    <div class="hr-line-dashed"></div>
@}


